﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MiniProfilerWebApplication1.Biz.Models
{
    public class Category
    {
        public Category()
        {
            this.Products = new HashSet<Product>();
        }

        #region 公共属性
        [Key]
        public long Id { get; set; }

        public string CategoryName { get; set; }
        #endregion

        public virtual ICollection<Product> Products { get; set; }
    }
}
